#pragma once

#include "string"
#include "string_view"

enum class ColumnType
{
    INT,
    TEXT,
};

std::string columnTypeToString(ColumnType type);

ColumnType stringToColumnType(std::string_view type);

class ColumnDef
{
private:
    std::string name_;
    ColumnType type_;

public:
    ColumnDef(std::string_view name, ColumnType type): 
        name_(name), 
        type_(type) 
    {
    }

    const std::string& name() const 
    { 
        return name_; 
    }

    ColumnType type() const 
    { 
        return type_; 
    }
};